/* monitor.h - interface for VGA */

#ifndef		_MONITOR_H_
#define		_MONITOR_H_

#include	"common.h"

/* 80 * 24 terminal */

#define		DEFCOL		80
#define		DEFROW		24

/* 16-color VGA code */

#define		BLACK		0
#define		BLUE		1
#define		GREEN		2
#define		CYAN		3
#define		RED		4
#define		MAGENTA		5
#define		BROWN		6
#define		LGREY		7
#define		DGREY		8
#define		LBLUE		9
#define		LGREEN		10
#define		LCYAN		11
#define		LRED		12
#define		LMAGENTA	13
#define		LBROWN		14
#define		WHITE		15

#define		DEFFORE		7	/* default foreground color - lgrey */
#define		DEFBACK		0	/* default background color - black */

#define		DEFTAB		8	/* tab 8 characters */

void monitor_put(char c);		/* write a character to screen */
void monitor_clear();			/* set screen to all black */
void monitor_write(char *c);		/* write a null-term ascii-str to screen */
void monitor_write_hex(u32int n);	/* write a hex number to screen */
void monitor_write_dec(u32int n);	/* write a dec number to screen */

#endif
